<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<title>세법해석키워드 조회 팝업</title>
<script type="text/javascript">
$(document).ready(function(){
	var op1 = ["1-선택하세요.","세부항목1","세부항목2","세부항목3"];
	var op2 = ["2-선택하세요.","세부항목4","세부항목5","세부항목6"];
	var op3 = ["3-선택하세요.","세부항목7","세부항목8","세부항목9"];
	var op4 = ["4-선택하세요.","세부항목10","세부항목11","세부항목12"];
	var selOp = document.createElement("select");
	var space = document.getElementById("spaceSemok");
	
	selOp.options[0] = new Option("상위 메뉴를 먼저 선택하세요.");
	
	$(":radio[name='jamoon']").bind("change",function(){
		ck = $(":radio[name='jamoon']:checked").val();
		if(ck==1){
			for(var i=0; i<op1.length;i++){
				selOp.options[i] = new Option(op1[i]);
			}
		}
		else if(ck==2){
			for(var i=0; i<op2.length;i++){
				selOp.options[i] = new Option(op2[i]);
			}
		}
		else if(ck==3){
			for(var i=0; i<op3.length;i++){
				selOp.options[i] = new Option(op3[i]);
			}
		}
		else if(ck==4){
			for(var i=0; i<op4.length;i++){
				selOp.options[i] = new Option(op4[i]);
			}
		}
	});
	
	space.appendChild(selOp);
});

function registerKeyword(){
	window.open("/${initParam.context_root}/keywordRegist.do","keywordRegist",
			"width=720px, height=700px,  menubar=no, status=yes, realzable=no, location=no, scrollbars=no, toolbar=no, resizable=no");
}

</script>
</head>
<body>
<div style="background-color: lightblue; height: 30px; "><b>세법해석키워드 조회 팝업</b></div>
<hr>
<table width="400px" >
<tr>
	<td><label><input type="radio" value="1"  name="jamoon" >과세사실판단자문</label>
	</td>
	<td><label><input type="radio" value="2" name="jamoon">서면질의</label>
	</td>
</tr>
<tr>
	<td><label><input type="radio" value="3" name="jamoon">과세기준자문</label>
	</td>
	<td><label><input type="radio" value="4" name="jamoon">사전답변</label>
	</td>
</tr>
</table>
<hr>
<center>
세목 &nbsp;&nbsp; 
<span id="spaceSemok">
</span>
<hr>
<img alt="키워드등록" src="/${initParam.context_root }/img/typeFive/registerKeyword.png" onclick="registerKeyword()" style="cursor: pointer;">&nbsp;&nbsp;
<img alt="등록취소" src="/${initParam.context_root }/img/typeFive/cancleRegister.png" onclick="javascript:window.close();" style="cursor: pointer;">
</center>
</body>
</html>